package com.symone.webcms.service;

import com.symone.webcms.model.DataPage;
import com.baomidou.mybatisplus.service.IService;
import com.baomidou.mybatisplus.mapper.Wrapper;
import com.baomidou.mybatisplus.plugins.Page;
import com.symone.webcms.model.vo.DataPageVO;
import javax.servlet.http.HttpServletRequest;
import javax.validation.constraints.NotNull;
import java.util.List;
/**
 *   @description : ContentPage 服务接口
 *   ---------------------------------
 * 	 @author Archer Chu
 *   @since 2019-03-25
 */
public interface DataPageService extends IService<DataPage> {

        boolean insert(DataPage dataPage);

        Page<DataPage> findPage(Page<DataPage> page, Wrapper<DataPage> dataPage);

        List<DataPage> findAll();

        int delete(long id);

        boolean deleteFlagById(long id);

        int clear();

        boolean add(HttpServletRequest request, @NotNull(message = "用户名不能为空") String userName);

        boolean update(HttpServletRequest request, @NotNull(message = "用户名不能为空") String userName);

        Page<DataPageVO> findListVO(Page<DataPageVO> page, String code,String module,String title,String moduleName);

        boolean deleteObject(Long id);
}
